package com.monolith.jd.demo.common.util;

import org.apache.commons.lang3.time.FastDateFormat;

import java.util.Date;

/**
 * 2018/10/1 Create by 郭文梁
 * DateUtil
 * 时间日期格式化工具
 *
 * @author 郭文梁
 * @date 2018/10/1
 */
public class DateUtil {

    public static String format(Date date, String formatter) {
        FastDateFormat format = FastDateFormat.getInstance(formatter);
        return format.format(date);
    }
}
